using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect09-目标棋子移除一个技能", menuName = "Skill/Effect/Effect09-目标棋子移除一个技能", order = 9)]
public class Effect09 : EffectBase
{
    public SkillConfig skillConfig;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;
        foreach (var target in targets)
        {
            EventCenter.GetInstance().EventTrigger(skillConfig.GetInstanceID().ToString() + "Remove", target);
        }
    }
}